import Vue from 'vue'
import VueRouter from 'vue-router'
// import Login from '../views/login/index.vue'

Vue.use(VueRouter)

const routes = [
  // { path: '/', redirect: '/login' },
  { path: '/login', name: 'login', component: () => import('@/views/login') },
  {
    path: '/',
    name: 'layout',
    component: () => import('@/views/layout'),
    children: [
      {
        path: '', name: 'home', component: () => import('@/views/home')
      },
      {
        path: 'qs', name: 'qs', component: () => import('@/views/qs')
      },
      {
        path: 'vedio', name: 'vedio', component: () => import('@/views/vedio')
      },
      {
        path: 'my', name: 'my', component: () => import('@/views/my')
      }

    ]
  }
]

const router = new VueRouter({
  routes
})

export default router
